using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
using TMPro;

public class Reward : MonoBehaviour
{
    [SerializeField] private TextMeshProUGUI _titilText;
    [SerializeField] private TextMeshProUGUI _countText;

    public void SetReward(string title, int count, string iconPath)
    {
        this.gameObject.transform.localScale = Vector3.one;
        _titilText.text = title;
        _countText.text = $"{count}";
        // _countText.DOText($"{count}", 2f, false, ScrambleMode.Numerals);
    }
}